package com.jihui.enterprise.domain.infrastructure.domain.mapper;

import com.jihui.enterprise.AbcEnterprise;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.jetbrains.annotations.Nullable;

/**
 * ${DESCRIPTION}
 *
 * @author 王进
 * @since 2017-09-18 16:09
 **/
public interface EnterpriseMapper {
    /**
     * 通过ID查找用户
     *
     * @param userId 用户账户
     * @return 返回账户
     */
    @Nullable
    @Select("select * from abc_enterprise where user_id=#{userId}")
    @ResultMap("EnterpriseResultMap")
    AbcEnterprise findByUserId(@Param("userId") String userId);


}
